<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="../common/taglibs.jsp" %>

<!DOCTYPE html>
<html lang="cn">
<head>
<title>银行信息</title>
<%@ include file="../common/jqGridScript.jsp" %>
<script type="text/javascript">
$( function() {

	var options = {
	 	url: '${ctx }/demo/bank.action',
	 	caption: '银行信息',
		colNames: [ '编号', '名称', '资产', '备注', '创建日期' ],
		colModel: [ {
			name: 'code',
			width: 50,
			sortable: false
		}, {
			name: 'name',
			width: 100,
			sortable: false
		}, {
			name: 'asset',
			width: 50,
			align: 'right',
			sortable: false
		}, {
			name: 'remark',
			width: 50,
			sortable: false
		}, {
			name: 'createTime',
			width: 50,
			sortable: false
		} ],
		viewrecords: true
	};
	$( '#list' ).jqGrid( options );

	/** 查询. */
	$( '#queryBtn' ).click( function() {
		$( '#list' ).jqGrid().query( '#queryForm' );
	} );

	/** 修改. */
	$( '#modifyBtn' ).click( function() {
		var dataId = $( '#list' ).jqGrid( 'getGridParam', 'selrow' );
		if( null != dataId ) {
			window.location.href = '${ctx }/demo/bank!input.action?id=' + dataId;
		}
	} );

} );
</script>
</head>

<body>
	<ul class="breadcrumb">
	  <li>银行信息<span class="divider">/</span></li>
	  <li class="active">查询</li>
	</ul>

	<form id="queryForm" method="post" class="form-horizontal">
		<div class="control-group">
			<label class="control-label">编号</label>
			<div class="controls">
				<input type="text" name="query_LIKE_S_code" value="${param['query_LIKE_S_code'] }" placeholder="编号" />
			</div>
			<label class="control-label">名称</label>
			<div class="controls">
				<input type="text" name="query_LIKE_S_name" value="${param['query_LIKE_S_name'] }" placeholder="名称" />
			</div>
		</div>
		<div class="control-group controls-row">
			<label class="control-label">大于资产</label>
			<div class="controls">
				<input type="text" name="query_GE_D_asset" value="${param['query_GE_D_asset'] }" placeholder="大于资产" />
			</div>
			<label class="control-label">小于资产</label>
			<div class="controls">
				<input type="text" name="query_LE_D_asset" value="${param['query_LE_D_asset'] }" placeholder="小于资产" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">大于创建日期</label>
			<div class="controls">
				<input type="text" name="query_GE_DATE_createTime" value="${param['query_GE_DATE_createTime'] }" placeholder="大于创建日期" />
			</div>
			<label class="control-label">小于创建日期</label>
			<div class="controls">
				<input type="text" name="query_LE_DATE_createTime" value="${param['query_LE_DATE_createTime'] }" placeholder="小于创建日期" />
			</div>
		</div>
		<div>
			<input type="button" id="queryBtn" class="btn btn-primary" value="查询" />
			<input type="button" id="modifyBtn" class="btn btn-primary" value="修改" />
		</div>
	</form>

	<table id="list"></table>
	<div id="pager"></div>
</body>
</html>